package base.day16.interface1;

public class Test {
    public static void main(String[] args) {
        InterImpl ii=new InterImpl();
        ii.study();
        //t2
        System.out.println("--------------------");
        Test2 t2=new Test2();
        t2.show();
        Inter2.show2();
        //t3
        System.out.println("----------------------");
        Test3 t3=new Test3();
        t3.show();
        t3.show2();

        inter4.open();
        inter4.open2();
    }
}
class Test2 implements Inter2{
    @Override
    public void show() {
        System.out.println("重写后的方法");
    }
}
class Test3 implements inter4{

}